<template>
	<view class="content">
		<view class="help_item" v-for="(item,index) in list" :key="index">
			<view class="help_l">
				<image src="../../../static/help.png" mode=""></image>
			</view>
			<view class="help_r">
				<view class="help_title">{{item.title}}</view>
				<view class="help_cont" v-html="item.content"></view>
			</view>
		</view>
		
	</view>
</template>

<script>
import getdata from '@/common/ajax.js';
	export default {
		data() {
			return {
				list:[]
			}
		},
		onLoad(){
			this.bang()
		},
		methods: {
			bang(){
				//会员级别
				uni.showLoading({
				    title: '加载中'
				});
				var _this = this
				var token = uni.getStorageSync('token')
				uni.request({
					url: getdata.websiteUrl + '/index/help',
					header:{'content-type': "application/x-www-form-urlencoded",token:token},
					dataType: 'json',
					method: 'POST',
					success: res => {
						uni.hideLoading();
						console.log(res)
						if(res.data.code == 1){
							_this.list = res.data.data
						}else{
							getdata.shou(res.data.msg)
						}
					},
					fail: res => {
						uni.hideLoading();
						getdata.shou('服务器断开链接')
					}
				});
			}
		}
	}
</script>

<style lang="scss">
.content{
	.help_item{
		width: 100%;
		display: flex;
		border-bottom: 2rpx solid #F1F3F5;
		box-sizing: border-box;
		padding:30rpx;
		.help_l{
			width: 66rpx;
			height: 66rpx;
			image{
				width: 66rpx;
				height: 66rpx;
				border-radius: 50%;
			}
		}
		.help_r{
			margin-left: 37rpx;
			.help_title{
				font-size: 24rpx;
				line-height: 1;
				font-family: PingFang SC;
				font-weight: bold;
				color: #333333;

			}
			.help_cont{
				font-size: 24rpx;
				line-height: 1.5x;
				font-family: PingFang SC;
				color: #333333;
				margin-top: 30rpx;
				p{
					font-size: 24rpx !important;
					span{
							font-size: 24rpx !important;
					}
				}
			}
		}
	}
}
</style>
